Eliminating Cycles in Composed Class Hierarchies
نویسنده
چکیده
Multiple class hierarchies can be used each to represent a separate requirement or design concern. To yield a working system, these disparate hierarchies must be composed in a semantically meaningful way. However, cycles can arise in the composed inheritance graph that restrict the space of composable hierarchies. This work presents an approach to eliminating these cycles by means of separating the type hierarchy from the implementation hierarchy; separate solutions are provided for languages permitting multiple inheritance, such as C++, and those permitting only interfaces, such as Java. The resulting acyclic class hierarchy will maintain the significant constraints imposed by the original, separate hierarchies, such as type-safety.
منابع مشابه
Revisiting the welfare effects of eliminating business cycles
We investigate the welfare effects of eliminating business cycles in a model with substantial consumer heterogeneity. The heterogeneity arises from uninsurable and idiosyncratic uncertainty in preferences and employment status. We calibrate the model to match the distribution of wealth in U.S. data and features of transitions between employment and unemployment. In comparison with much of the l...
متن کاملSubject Composition by Roles
Subjects model diierent perspectives on a problem domain by collections of related class hierarchies. Subjects can be seen as the result of separate and possibly independent development processes for partial models. The subjects can be eeciently composed by a technique that builds on the notion of roles. The composition allows already combined subjects to be further combined or to be dissolved ...
متن کامل0n removable cycles in graphs and digraphs
In this paper we define the removable cycle that, if $Im$ is a class of graphs, $Gin Im$, the cycle $C$ in $G$ is called removable if $G-E(C)in Im$. The removable cycles in Eulerian graphs have been studied. We characterize Eulerian graphs which contain two edge-disjoint removable cycles, and the necessary and sufficient conditions for Eulerian graph to have removable cycles h...
متن کاملUser Interface Applications of a Multi-way Constraint Solver
Constraints are widely recognized as a useful tool for user interface constructino. Through constraints, relationships among user interface components can be defined declaratively, leaving the task of relationship management to a constraint solver. Multi-way constraint solvers supporting constraint hierarchies provide a means to specify preferential constraint relationships with a dynamically c...
متن کاملRelationships between Darboux Integrability and Limit Cycles for a Class of Able Equations
We consider the class of polynomial differential equation x&= , 2(,)(,)(,)nnmnmPxyPxyPxy++++2(,)(,)(,)nnmnmyQxyQxyQxy++&=++. For where and are homogeneous polynomials of degree i. Inside this class of polynomial differential equation we consider a subclass of Darboux integrable systems. Moreover, under additional conditions we proved such Darboux integrable systems can have at most 1 limit cycle.
متن کامل